home *** CD-ROM | disk | FTP | other *** search
/ Developer CD Series 1997 October: Mac OS SDK / Dev.CD Oct 97 SDK1.toast / Development Kits (Disc 1) / Installer SDK Cornucopia 1.0.2 / Script Examples / Rsrc Compare by Procedure / GetRsrcVersion.c next >
Encoding:
C/C++ Source or Header  |  1996-09-23  |  767 b   |  27 lines  |  [TEXT/MPS ]

  1. #ifndef __InstallerScript__
  2. #include "InstallerScript.h"
  3. #endif
  4.  
  5.  
  6. long GetRsrcVersion( ComputeVersionPBPtr myComputeVersionPBPtr ) 
  7. {
  8.     long    theVersionNumber = 0;
  9.     long    theCount = 4;
  10.  
  11.     ReadTargetData( myComputeVersionPBPtr->fCallBackProcPtr, 
  12.                     &theCount, (Ptr)&theVersionNumber );
  13.  
  14.     return theVersionNumber;
  15. }
  16.  
  17. // Because this include contains functions that
  18. // will be compiled, and we want to make sure
  19. // that our main entry point 'GetRsrcVersion()'
  20. // is placed at the top of the code resource
  21. // that is generated, this include statement
  22. // is put at the end of this file. Even better
  23. // method would be to compile this included file
  24. // as a seperate library and to link that library
  25. // to the GetRsrcVersion() object file.
  26. #include "InstallerCallbackGlue.c"
  27.